//
//  HBNovelModel.h
//  HeartBeat
//
//  Created by karong on 2023/8/23.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "HBChapterModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface HBNovelModel : NSObject
///傳統小說ID
@property (nonatomic, assign) NSInteger id;
///小說ID
@property (nonatomic, assign) NSInteger book_id;//
///小說封面圖
@property (nonatomic, strong) NSString * thumb;//
///小說名稱
@property (nonatomic, strong) NSString * name;//
@property (nonatomic, strong) NSString * title;//
///分類名稱
@property (nonatomic, strong) NSString * category_name;//
///小說簡介
@property (nonatomic, strong) NSString * desc;
///小說閱讀热度
@property (nonatomic, assign) NSInteger total_views;//
///小說點讚數
@property (nonatomic, assign) NSInteger total_likes;
///頻道id
@property (nonatomic, assign) NSInteger channel_id;
///頻道名稱
@property (nonatomic, strong) NSString * channel_txt;
///作者
@property (nonatomic, strong) NSString * author;//
///關聯作者ID
@property (nonatomic, assign) NSInteger user_id;//
///評分
@property (nonatomic, assign) CGFloat score;//
///標籤 ,隔開
@property (nonatomic, strong) NSString * tag;//
///連載狀態 1連載 2完結
@property (nonatomic, assign) NSInteger finish;//
///連載狀態文案
@property (nonatomic, strong) NSString * finish_txt;//
///榜單標籤
@property (nonatomic, strong) NSString * rank_tag;
///榜單類型
@property (nonatomic, strong) NSString * rank_type;
///是否加入書架
@property (nonatomic, assign) BOOL is_bookshelf;//
///書籍類型
@property (nonatomic, assign) NSInteger type;
///書籍類型文案
@property (nonatomic, strong) NSString * type_txt;
///章節總數
@property (nonatomic, assign) NSInteger total;
///閱讀進度 下發的是百分比值 100
@property (nonatomic, assign) NSInteger read_percent;
@property (nonatomic, assign) NSInteger show_vip_tag;//
@property (nonatomic, assign) NSInteger is_vip;//
///是否评分 0-未评分 1-已评分
@property (nonatomic, assign) NSInteger is_score;//

///排行版專用
///總收藏數
@property (nonatomic, assign) NSInteger total_favors;//
///更新時間
@property (nonatomic, assign) NSTimeInterval updated;//
///書籍详情
///作者名
@property (nonatomic, strong) NSString * author_name;
///作者id
@property (nonatomic, assign) NSInteger author_id;
///作者頭像
@property (nonatomic, strong) NSString * avatar;
///猜你喜欢
@property (nonatomic, strong) NSArray * guess_like;
///字數
@property (nonatomic, assign) NSInteger word;//
///字數文案屬性
@property (nonatomic, strong) NSString * word_txt;//
///作者簡介
@property (nonatomic, strong) NSString * sign;
@property (nonatomic, strong) NSString * author_note;

///最新章節
@property (nonatomic, strong) HBChapterModel * newest_chapter;
///章節能否提交 1-能 0-否
@property (nonatomic, assign) BOOL can_submit;
///催更數
@property (nonatomic, assign) NSInteger total_urge;
///是否有閱讀記錄
@property (nonatomic, assign) BOOL had_read;//
///正在閱讀的章節
@property (nonatomic, assign) NSInteger chapter_id;
///正在閱讀的章節
@property (nonatomic, assign) NSInteger chapter_sort;
///章节标题
@property (nonatomic, strong) NSString * chapter_title;
///是否可以催更
@property (nonatomic, assign) NSInteger is_urge;

///自定義屬性，用於编辑時記錄选中情况
@property (nonatomic, assign) BOOL isSelected;
///對話小說標記 0普通小說 1對話小說
@property (nonatomic, assign) NSInteger is_dialog;

@property (nullable, nonatomic) UIColor * mostColor;
@end

NS_ASSUME_NONNULL_END
